package b.a.c;

import org.xml.sax.*;

import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParserFactory;
import java.io.IOException;

public class c
  implements XMLReader
{
  XMLReader a;
  private boolean b;
  public static int c;
  
  public c()
  {
    try
    {
      this.a = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
      this.a.setContentHandler(new a(this.a.getContentHandler()));
    }
    catch (SAXException localSAXException)
    {
      localSAXException.printStackTrace();
    }
    catch (ParserConfigurationException localParserConfigurationException)
    {
      localParserConfigurationException.printStackTrace();
    }
    catch (FactoryConfigurationError localFactoryConfigurationError)
    {
      localFactoryConfigurationError.printStackTrace();
    }
    a(true);
  }
  
  public boolean a()
  {
    return this.b;
  }
  
  public void a(boolean paramBoolean)
  {
    this.b = paramBoolean;
    if ((b.f != 0) || (paramBoolean)) {
      try
      {
        this.a.setFeature("http://xml.org/sax/features/namespaces", false);
        this.a.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
      }
      catch (SAXNotRecognizedException localSAXNotRecognizedException) {}catch (SAXNotSupportedException localSAXNotSupportedException) {}
    }
  }
  
  public void parse(String paramString)
    throws IOException, SAXException
  {
    ContentHandler localContentHandler = this.a.getContentHandler();
    if (b.f == 0) {
      if ((this.b) && (!(localContentHandler instanceof a))) {
        this.a.setContentHandler(new a(localContentHandler));
      }
    }
    this.a.parse(paramString);
  }
  
  public boolean getFeature(String paramString)
    throws SAXNotRecognizedException, SAXNotSupportedException
  {
    return this.a.getFeature(paramString);
  }
  
  public void setFeature(String paramString, boolean paramBoolean)
    throws SAXNotRecognizedException, SAXNotSupportedException
  {
    int i = b.f;
    if ((i != 0) || ((!this.b) || ((i != 0) || ((!"http://xml.org/sax/features/namespaces".equals(paramString)) && (!"http://xml.org/sax/features/namespaces-prefixes".equals(paramString)))))) {
      this.a.setFeature(paramString, paramBoolean);
    }
  }
  
  public ContentHandler getContentHandler()
  {
    ContentHandler localContentHandler = this.a.getContentHandler();
    if (b.f == 0) {
      if ((localContentHandler instanceof a)) {
        return ((a)localContentHandler).a();
      }
    }
    return localContentHandler;
  }
  
  public void setContentHandler(ContentHandler paramContentHandler)
  {
    int i = b.f;
    if (i == 0) {
      if ((this.b) && ((paramContentHandler instanceof a)))
      {
        this.a.setContentHandler(paramContentHandler);
        if (i == 0) {
          return;
        }
      }
    }
    this.a.setContentHandler(new a(paramContentHandler));
  }
  
  public DTDHandler getDTDHandler()
  {
    return this.a.getDTDHandler();
  }
  
  public void setDTDHandler(DTDHandler paramDTDHandler)
  {
    this.a.setDTDHandler(paramDTDHandler);
  }
  
  public EntityResolver getEntityResolver()
  {
    return this.a.getEntityResolver();
  }
  
  public void setEntityResolver(EntityResolver paramEntityResolver)
  {
    this.a.setEntityResolver(paramEntityResolver);
  }
  
  public ErrorHandler getErrorHandler()
  {
    return this.a.getErrorHandler();
  }
  
  public void setErrorHandler(ErrorHandler paramErrorHandler)
  {
    this.a.setErrorHandler(paramErrorHandler);
  }
  
  public void parse(InputSource paramInputSource)
    throws IOException, SAXException
  {
    this.a.parse(paramInputSource);
  }
  
  public Object getProperty(String paramString)
    throws SAXNotRecognizedException, SAXNotSupportedException
  {
    return this.a.getProperty(paramString);
  }
  
  public void setProperty(String paramString, Object paramObject)
    throws SAXNotRecognizedException, SAXNotSupportedException
  {
    this.a.setProperty(paramString, paramObject);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     b.a.c.c

 * JD-Core Version:    0.7.0.1

 */